<?php
/**
 * Created by PhpStorm.
 * User: zlc
 * Date: 2018-07-18
 * Time: 下午 3:18
*/
namespace app\index\model;
use think\Model;

class AppModel extends Model
{
    // 确定链接表名
    protected $name = 'app';

    /***
     * 插入预约信息
     * @param $data 插入数据
     */
    public function insertAppInfo($data){
        return $this->insert($data);
    }
    /**
     * 检测今天是否预约
     * $map 查询条件
     */
    public function checkIsApp($map){
        return $this->where($map)->find();
    }
}